package com.eattravel.mapper;

import com.eattravel.pojo.CommentCom;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentComMapper {
    /**
     * 查找主评论id下的评论内容
     * @param comId
     * @return
     */
    List<CommentCom> findComByCommentId(Long comId);

    /**
     *
     * @param commentCom
     * @return
     */
    int insertCommentCom(@Param("commentCom") CommentCom commentCom);
}